{template header}
<form method="post" class="form-horizontal" onsubmit="return check()">
    <div class="control-group">
        <div class="controls">
            <span>用户ID</span>
            <div style="float:right;display:inline-block;margin-right:600px;">
                <input type="text" name="userId" id="userId">
            </div>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <span>回调地址</span>
            <div style="float:right;display:inline-block;margin-right:600px;">
                <input type="text" name="callback" id="callback">
            </div>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <div style="display:inline-block;margin-right:600px;">
                <input type="submit" value="提交" class="btn btn-success">
            </div>
        </div>
    </div>
</form>
{template footer}
<script>
    function check(){
        var userId = $('#userId').val();
        var callback = $("#callback").val();
        if(userId.length == 0 || callback.length == 0){
            alert('参数不完整');
            return false;
        }
    }
</script>